home *** CD-ROM | disk | FTP | other *** search
- <HTMLtool>Displays a textbox where text is being entered letter by letter</HTMLtool>
- <HTML><HEAD><SCRIPT LANGUAGE="JavaScript">
- <!-- begin
- // 1996 by Christoph Bergmann... http://acc.de/cb
- // Please keep this note...
- // global variables
- var max=0;
- function textlist()
- {
- max=textlist.arguments.length;
- for (i=0; i<max; i++)
- this[i]=textlist.arguments[i];
- }
- tl=new textlist
- (
-
- "Your text here (no quotation marks here)"
- );
- var x=0; pos=0;
- var l=tl[0].length;
-
- function textticker()
- {
- document.tickform.tickfield.value=tl[x].substring(0,pos)+"_";
-
- if(pos++==l)
- {
- pos=0;
- setTimeout("textticker()",1000);
- x++;
- if(x==max)
- x=0;
- l=tl[x].length;
- } else
- setTimeout("textticker()",50);
- }
- // end -->
- </script>
- </HEAD><BODY><SCRIPT LANGUAGE="JavaScript">
- <!--
- document.write("<FORM NAME=\"tickform\">");
- document.write("<INPUT TYPE=\"TEXT\" NAME=\"tickfield\" SIZE=\"40\">");
- document.write("</FORM>");
- textticker();
- //-->
- </SCRIPT>
- </BODY></HTML>